package com.neusoft.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.neusoft.entity.Demand;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface DemandDao extends BaseDao<Demand>{
    List<Demand> queryAll(IPage<Demand> page, @Param("bean") Demand bean);
    List<Demand> queryAllByLimit(@Param("offset") int offset, @Param("limit") int limit, Demand demand);
    Demand queryById(@Param("id")Integer id);

}
